<?php

namespace library\Core;

class Coder {

    /**
     * Creates an Application of the specified class.
     * @param string $class the Application class name
     * @param mixed $config Application configuration. This parameter will be passed as the parameter
     * to the constructor of the Application class.
     * @return mixed the Application instance
     */
    public static function createApplication($class, $config = null) {
        return new $class($config);
    }

    /**
     * @return string the version of Yii framework
     */
    public static function getVersion() {
        return '0.0.1';
    }

}
